package com.boot.security.server.controller;

import com.boot.security.server.annotation.LogAnnotation;
import com.boot.security.server.common.Result;
import com.boot.security.server.model.Permission;
import com.boot.security.server.model.param.ChangeStatusParam;
import com.boot.security.server.service.ReviewService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author Ming
 * @version 1.0
 * @date 2020/9/18 10:12
 * @Description 审核模块
 */
@Api(tags = "审核模块")
@RestController
@RequestMapping("/review")
public class ReviewController {


    @Autowired
    private ReviewService reviewService;

    @LogAnnotation
    @ApiOperation(value = "审核督察问题")
    @PostMapping("/reviewQuestion")
    public Result reviewQuestion(@RequestBody ChangeStatusParam param) {

        return reviewService.reviewQuestion(param);

    }

    @LogAnnotation
    @ApiOperation(value = "督察问题进度修改")
    @PostMapping("/reviewQuestionStatus")
    public Result reviewQuestionStatus(@RequestBody ChangeStatusParam param) {

        return reviewService.reviewQuestionStatus(param);

    }













}
